// 二维码相关API
import request from '@/utils/request.js'

/**
 * 生成分享下载二维码
 */
export const generateDownloadQR = () => {
  return request({
    url: '/agg/qrcode/generateDownload',
    method: 'GET'
  })
}

/**
 * 扫描二维码
 * @param {String} content 二维码内容
 */
export const scanQRCode = (content) => {
  return request({
    url: `/agg/qrcode/scan?content=${content}`,
    method: 'GET'
  })
}
